package com.github.dengmin.mysql.service;

import com.github.dengmin.mysql.dao.UserDao;
import com.github.dengmin.mysql.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author dengmin
 * @Created 2020/7/1 下午3:58
 */
@Service
public class UserService {
    private static final long serialVersionUID = 1L;
    @Resource
    private UserDao userDao;

    public User getByName(String name){
        return userDao.getByName(name);
    }
}
